package com.ita.acmsystem.merchant.dao;

import java.util.List;

import com.ita.acmsystem.merchant.entity.Merchant;

public interface IMerchantDao {

	/**
	 * 
	 * @param merchantName
	 * @param merchantPassword
	 * @return
	 */
	Merchant query(String merchantName, String merchantPassword);

	/**
	 * 
	 * @param merchantId
	 * @return
	 */
	Merchant queryById(String merchantId);

	/**
	 * 
	 * @param merchantName
	 * @return
	 */
	Merchant queryByName(String merchantName);

	/**
	 * 
	 * @return
	 */
	List<Merchant> queryAll();

	/**
	 * 
	 * @param merchant
	 * @return
	 */
	Merchant persist(Merchant merchant);

	/**
	 * 
	 * @param merchant
	 * @return
	 */
	boolean update(Merchant merchant);

	/**
	 * 
	 * @param merchantId
	 * @return
	 */
	boolean delete(String merchantId);
}
